package org.wangnian.autogeneratorcode.generator.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author wangnian
 * @since 2024-04-25
 */
@TableName("t_generator2")
public class Generator2 implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "g_id2", type = IdType.AUTO)
    private Integer gId2;

    private String name2;

    private Integer age2;

    public Integer getgId2() {
        return gId2;
    }

    public void setgId2(Integer gId2) {
        this.gId2 = gId2;
    }

    public String getName2() {
        return name2;
    }

    public void setName2(String name2) {
        this.name2 = name2;
    }

    public Integer getAge2() {
        return age2;
    }

    public void setAge2(Integer age2) {
        this.age2 = age2;
    }

    @Override
    public String toString() {
        return "Generator2{" +
            "gId2 = " + gId2 +
            ", name2 = " + name2 +
            ", age2 = " + age2 +
        "}";
    }
}
